<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>background</title>
	<script src="js/jquery.js"></script>
    <link href="js/bootstrap.min.css" rel="stylesheet">
    <link href="js/style.css" rel="stylesheet" type="text/css">
    <script src="js/bootstrap.min.js"></script>
</head>

<body>
<?php
include 'conn_mysql.php';
session_start();
include 'sidebar.php';

if(strlen($_SESSION['bigtype'])==0){
	$_SESSION['bigtype']=1;//分页内容显示识别符
}
$id=$_REQUEST['id'];       //旅游项目识别符

$sql="SELECT * FROM `lvyou_difang_info` WHERE id='$id'";
$query = mysql_query($sql);
if(mysql_num_rows($query)<1){
}else{	
	while($row = mysql_fetch_array($query)){
		$difang_name=$row['difang_name'];
		$difang_miaoshu=$row['difang_miaoshu'];
		$biaoti=$row['biaoti'];
		$jiage=$row['jiage'];
		$jitian=$row['jitian'];
		$fanduos=$row['fanduos'];
		$picture_lujing=$row['picture_lujing'];
		$difang_type=$row['difang_type'];
		$danfangcha=$row['danfangcha'];
		$is_open=$row['is_open'];
		
		$banqi1=$row['banqi1'];
		$chengren1=$row['chengren1'];
		$ertong1=$row['ertong1'];
		
		$banqi2=$row['banqi2'];
		$chengren2=$row['chengren2'];
		$ertong2=$row['ertong2'];
		$banqi3=$row['banqi3'];
		$chengren3=$row['chengren3'];
		$ertong3=$row['ertong3'];

		$banqi4=$row['banqi4'];
		$chengren4=$row['chengren4'];
		$ertong4=$row['ertong4'];
		$banqi5=$row['banqi5'];
		$chengren5=$row['chengren5'];
		$ertong5=$row['ertong5'];
		$banqi6=$row['banqi6'];
		$chengren6=$row['chengren6'];
		$ertong6=$row['ertong6'];
		
		$up_renshu1=$row['up_renshu1'];
		$up_renshu2=$row['up_renshu2'];
		$up_renshu3=$row['up_renshu3'];

		$up_renshu4=$row['up_renshu4'];
		$up_renshu5=$row['up_renshu5'];
		$up_renshu6=$row['up_renshu6'];

		$sort=$row['sort'];
		$is_hidden=$row['is_hidden'];
		$is_hot=$row['is_hot'];
		
		$difang_type_region=$row['difang_type_region'];
	}
	

}
?>
<div style="width:800px;height:46px;position:relative;left:50%;margin-left:-400px;border-bottom:1px solid #C9C9CA;">
	<a href="getmessage_all.php?bigtype=23&biaoqian=1&id=<?php echo $id;?>"><input type="button" style="float:left;width:100px;height:35px;border:5px;display:block;background-color:#F7DDD2;margin-top:10px;margin-left:20px;line-height:35px;text-align:center;color:#DA4B3B;font-family:微软雅黑;font-size:14px;cursor:pointer;border-radius:5px 5px 0px 0px;cursor:pointer;" value="线路基本信息" id="biaoqi1"></a>
	</input>
	<a href="getmessage_all.php?bigtype=23&biaoqian=2&id=<?php echo $id;?>"><input type="button" style="float:left;width:100px;height:35px;border:5px;display:block;background-color:#F7DDD2;margin-top:10px;margin-left:20px;line-height:35px;text-align:center;color:#DA4B3B;font-family:微软雅黑;font-size:14px;cursor:pointer;border-radius:5px 5px 0px 0px;cursor:pointer;" value="图片管理" id="biaoqi2"></a>
	</input>
	<a href="getmessage_all.php?bigtype=23&biaoqian=3&id=<?php echo $id;?>"><input type="button" style="float:left;width:100px;height:35px;border:5px;display:block;background-color:#F7DDD2;margin-top:10px;margin-left:20px;line-height:35px;text-align:center;color:#DA4B3B;font-family:微软雅黑;font-size:14px;cursor:pointer;border-radius:5px 5px 0px 0px;cursor:pointer;" value="线路特色" id="biaoqi3"></a>
	</input>
	<a href="getmessage_all.php?bigtype=23&biaoqian=4&id=<?php echo $id;?>"><input type="button" style="float:left;width:100px;height:35px;border:5px;display:block;background-color:#F7DDD2;margin-top:10px;margin-left:20px;line-height:35px;text-align:center;color:#DA4B3B;font-family:微软雅黑;font-size:14px;cursor:pointer;border-radius:5px 5px 0px 0px;cursor:pointer;" value="每日行程" id="biaoqi4"></a>
	</input>
	<a href="getmessage_all.php?bigtype=23&biaoqian=5&id=<?php echo $id;?>"><input type="button" style="float:left;width:100px;height:35px;border:5px;display:block;background-color:#F7DDD2;margin-top:10px;margin-left:20px;line-height:35px;text-align:center;color:#DA4B3B;font-family:微软雅黑;font-size:14px;cursor:pointer;border-radius:5px 5px 0px 0px;cursor:pointer;" value="用户须知" id="biaoqi5"></a>
	</input>
	<a href="getmessage_all.php?bigtype=23&biaoqian=6&id=<?php echo $id;?>"><input type="button" style="float:left;width:100px;height:35px;border:5px;display:block;background-color:#F7DDD2;margin-top:10px;margin-left:20px;line-height:35px;text-align:center;color:#DA4B3B;font-family:微软雅黑;font-size:14px;cursor:pointer;border-radius:5px 5px 0px 0px;cursor:pointer;" value="目的地介绍" id="biaoqi6"></a>
	</input>


<?php if($_SESSION['bigtype']==1){  ?>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">类型</a>
		<select id="difang_type" onChange="btRegion(this)" style="float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 56px;">
			<option value="0">选择类型</option>
			<option value="1">国内游</option>
			<option value="2">境外游</option>
			<option value="3">周边游</option>
		</select>
     	<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">地区</a>
		<select id="difang_type_region" style="float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 56px;">
			<option  value="0">选择地区</option>
            <?php  
			//difang_type_region 就是地区的difang_type_id
				if($difang_type)
				{
					$sql="SELECT * FROM `lvyou_difang_type` WHERE parent_id='$difang_type' ";
					$query = mysql_query($sql);

				  	  while($row = mysql_fetch_array($query)){
						 if($difang_type_region==$row['difang_type_id'])
						 {echo '<option selected value="'.$row['difang_type_id'].'">'.$row['difang_type_name'].'</option>';}
						 else
                        echo '<option value="'.$row['difang_type_id'].'">'.$row['difang_type_name'].'</option>';
					 }
				}
			?>
		</select>
<script>

  function btRegion(obj)
  {
	  var dtype=$(obj).val();
	  var url="getmessage_all.php?bigtype=29&dtype="+dtype;
	 
		$.ajax({
				url: url,
				type: "GET",
				dataType:'json',
				success: function(data){

					var code=data.code;
					var type_list=data.data;

					var difang_type_region=$('#difang_type_region');
					 difang_type_region.empty();
					difang_type_region.append("<option value='0'>选择地区</option>");
					$.each(type_list,function(k,v)
					 {

						 difang_type_region.append("<option value='"+v.id+"'>"+v.name+"</option>");
				     });
					
				},
				error:function(er){
				alert('error');
				}
		});
	}
</script>


		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">开关</a>
		<select id="is_open" style="float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 31px;">
			<option value="1">开</option>
			<option value="0">关</option>
		</select>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
		<input  type="text" id="biaoti" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 56px;" placeholder="请填写项目描述" value="<?php echo $biaoti;?>"></input>
		
		
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">为期几天</a>
		<input  type="text" id="jitian" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="0" value="<?php echo $jitian;?>"></input>
		
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">奖励驴币</a>
		<input  type="text" id="fanduos" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;"  placeholder="0" value="<?php echo $fanduos;?>"></input>
		
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">单房差</a>
		<input  type="text" id="danfangcha" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $danfangcha;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">出发班期</a>
		<input  type="text" id="banqi1" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="如07/29" value="<?php echo $banqi1;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">成人价</a>
		<input  type="text" id="chengren1" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $chengren1;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">儿童价</a>
		<input  type="text" id="ertong1" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $ertong1;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">限制人数</a>
		<input  type="text" id="up_renshu1" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $up_renshu1;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">出发班期</a>
		<input  type="text" id="banqi2" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="如07/29" value="<?php echo $banqi2;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">成人价</a>
		<input  type="text" id="chengren2" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $chengren2;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">儿童价</a>
		<input  type="text" id="ertong2" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $ertong2;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">限制人数</a>
		<input  type="text" id="up_renshu2" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $up_renshu2;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 20px 0px;">出发班期</a>
		<input  type="text" id="banqi3" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="如07/29" value="<?php echo $banqi3;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">成人价</a>
		<input  type="text" id="chengren3" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $chengren3;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">儿童价</a>
		<input  type="text" id="ertong3" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $ertong3;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">限制人数</a>
		<input  type="text" id="up_renshu3" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $up_renshu3;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 20px 0px;">出发班期</a>
		<input  type="text" id="banqi4" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="如07/29" value="<?php echo $banqi4;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">成人价</a>
		<input  type="text" id="chengren4" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $chengren4;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">儿童价</a>
		<input  type="text" id="ertong4" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $ertong4;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">限制人数</a>
		<input  type="text" id="up_renshu4" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $up_renshu4;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 20px 0px;">出发班期</a>
		<input  type="text" id="banqi5" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="如07/29" value="<?php echo $banqi5;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">成人价</a>
		<input  type="text" id="chengren5" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $chengren5;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">儿童价</a>
		<input  type="text" id="ertong5" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $ertong5;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">限制人数</a>
		<input  type="text" id="up_renshu5" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $up_renshu5;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 20px 0px;">出发班期</a>
		<input  type="text" id="banqi6" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="如07/29" value="<?php echo $banqi6;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">成人价</a>
		<input  type="text" id="chengren6" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $chengren6;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">儿童价</a>
		<input  type="text" id="ertong6" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $ertong6;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">限制人数</a>
		<input  type="text" id="up_renshu6" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<?php echo $up_renshu6;?>"></input>
		


		<span style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:10px 0px 10px 0px;">排序（数字越大越置顶）</span>
		<input  type="text" id="sort" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:10px 0px 10px 56px;" placeholder="1" value="<?php echo $sort;?>"></input>
		<span style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:10px 0px 10px 0px;">后台隐藏活动</span>
		<input  type="checkbox" name="is_hidden" id="is_hidden" style="float:left;width:15px;height:15px;padding-left:2px;border:1px solid #C9CACA;border-radius:3px;margin:12px 0px 10px 10px;"  <?php if($is_hidden==1) {?> checked="checked" /><?php } ?> />
		<span style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:10px 0px 10px 10px;">热门线路</span>
		<input  type="checkbox" name="is_hot" id="is_hot" style="float:left;width:15px;height:15px;padding-left:2px;border:1px solid #C9CACA;border-radius:3px;margin:12px 0px 10px 10px;"  <?php if($is_hot==1) {?> checked="checked" /><?php } ?> />
		
		<input type="button" style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:20px;" value="确认" onClick="up_date();" ></input>
</div>


	<SCRIPT LANGUAGE="javascript"> 
	function fnSaveForm(){		
		document.getElementById("biaoqi1").style.backgroundColor="#DA4B3B";
		document.getElementById("biaoqi1").style.color="#FFFFFF";
		
		var selectObj=document.getElementById("difang_type");
		for (i=0; i< selectObj.options.length; i++){
			var curOptObj=selectObj.options[i];
			var curText=curOptObj.value;
			if("<?php echo $difang_type;?>"==curText){
				curOptObj.selected=true;
			}
		}
		var selectObj=document.getElementById("is_open");
		for (i=0; i< selectObj.options.length; i++){
			var curOptObj=selectObj.options[i];
			var curText=curOptObj.value;
			if("<?php echo $is_open;?>"==curText){
				curOptObj.selected=true;
			}
		}
	}
	window.onload=fnSaveForm;
	
	function up_date(){
		difang_type         =        document.getElementById("difang_type").value;     
		biaoti        		=        document.getElementById("biaoti").value;
		jitian         		=        document.getElementById("jitian").value;  
		fanduos        		=        document.getElementById("fanduos").value;
		danfangcha          =        document.getElementById("danfangcha").value;
		
		banqi1          	=        document.getElementById("banqi1").value;
		chengren1         	=        document.getElementById("chengren1").value;
		ertong1          	=        document.getElementById("ertong1").value;
		up_renshu1          =        document.getElementById("up_renshu1").value;
		banqi2          	=        document.getElementById("banqi2").value;
		chengren2         	=        document.getElementById("chengren2").value;
		ertong2          	=        document.getElementById("ertong2").value;
		up_renshu2          =        document.getElementById("up_renshu2").value;

		banqi3          	=        document.getElementById("banqi3").value;
		chengren3         	=        document.getElementById("chengren3").value;
		ertong3          	=        document.getElementById("ertong3").value;
		up_renshu3          =        document.getElementById("up_renshu3").value;


		banqi4         	=        document.getElementById("banqi4").value;
		chengren4        	=        document.getElementById("chengren4").value;
		ertong4         	=        document.getElementById("ertong4").value;
		up_renshu4          =        document.getElementById("up_renshu4").value;


		banqi5         	=        document.getElementById("banqi5").value;
		chengren5         	=        document.getElementById("chengren5").value;
		ertong5          	=        document.getElementById("ertong5").value;
		up_renshu5         =        document.getElementById("up_renshu5").value;

		banqi6          	=        document.getElementById("banqi6").value;
		chengren6         	=        document.getElementById("chengren6").value;
		ertong6         	=        document.getElementById("ertong6").value;
		up_renshu6          =        document.getElementById("up_renshu6").value;


		is_open             =        document.getElementById("is_open").value;
		sort             =        document.getElementById("sort").value;
		var is_hidden   =  $('input[name="is_hidden"]:checked').val();
		var is_hot   =  $('input[name="is_hot"]:checked').val();
		
		var difang_type_region=document.getElementById("difang_type_region").value;
		
		
		if(is_hidden=='on')is_hidden=1;else is_hidden=0;
		if(is_hot=='on')is_hot=1;else is_hot=0;

		var url="getmessage_all.php?bigtype=1&id=<?php echo $id;?>";
		url=url+"&difang_type="+difang_type;
		url=url+"&biaoti="+biaoti;
		url=url+"&jitian="+jitian;
		url=url+"&fanduos="+fanduos;
		url=url+"&danfangcha="+danfangcha;
		
		url=url+"&banqi1="+banqi1;
		url=url+"&chengren1="+chengren1;
		url=url+"&ertong1="+ertong1;
		url=url+"&up_renshu1="+up_renshu1;
		url=url+"&banqi2="+banqi2;
		url=url+"&chengren2="+chengren2;
		url=url+"&ertong2="+ertong2;
		url=url+"&up_renshu2="+up_renshu2;

		url=url+"&banqi3="+banqi3;
		url=url+"&chengren3="+chengren3;
		url=url+"&ertong3="+ertong3;
		url=url+"&up_renshu3="+up_renshu3;

		url=url+"&banqi4="+banqi4;
		url=url+"&chengren4="+chengren4;
		url=url+"&ertong4="+ertong4;
		url=url+"&up_renshu4="+up_renshu4;
		url=url+"&banqi5="+banqi5;
		url=url+"&chengren5="+chengren5;
		url=url+"&ertong5="+ertong5;
		url=url+"&up_renshu5="+up_renshu5;
		url=url+"&banqi6="+banqi6;
		url=url+"&chengren6="+chengren6;
		url=url+"&ertong6="+ertong6;
		url=url+"&up_renshu6="+up_renshu6;

		url=url+"&is_open="+is_open;
		url=url+"&sort="+sort;
		url=url+"&is_hidden="+is_hidden;
		url=url+"&is_hot="+is_hot;
		url=url+"&difang_type_region="+difang_type_region;
		
		$.ajax({
			type:"GET",
			url:url,
			dataType: "json",
			success: function(data){	
				if(data['code']==0001){
					alert(data['reason']);
					window.location.href='index.php?id='+data['id'];  
				}else{
					alert(data['reason']);
				}
			}
		});
	}
	</SCRIPT>
<?php } ?>
<?php if($_SESSION['bigtype']==2){  ?>
	<!--首页图片(1张)-->
	<a style="clear:left;text-align:center;color:#DA4713;font-family:微软雅黑;font-size:18px;">首页图片(1张)</a>
	<?php if(strlen($picture_lujing)==0){ ?>
	<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 0px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
		<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
		<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img">
			<label for="file" style="opacity: 0;">Filename:</label>
			<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onChange="change_picture()"></input>
			<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
			<input name="bigtype" id="bigtype" value="1" style="opacity: 0;">
		</form>
	</div>
	<?php }else{ ?>
	<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 0px;background-image:url(<?php echo $picture_lujing;?>);background-repeat:repeat;background-size:100% 100%;">
	</div>
	<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img">
		<label for="file" style="opacity: 0;">Filename:</label>
		<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:25px;margin-left:-320px;opacity: 0;" onChange="change_picture()"></input>
		<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
		<input name="bigtype" id="bigtype" value="1" style="opacity: 0;">
	</form>
	<?php } ?>
	
	<!--轮播图片（4张）-->
	<a style="clear:left;text-align:center;color:#DA4713;font-family:微软雅黑;font-size:18px;">轮播图片（4张）</a>
	<?php
	$i=2;
	$k=1;
	$sql="SELECT * FROM `picture_xiangmu_up` WHERE difang_id='$id' and type='1' order by id";
	$query = mysql_query($sql);
	$num=mysql_num_rows($query);
	while($row = mysql_fetch_array($query)){
		//$single_kk=$row['key'];
	?>
	<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['Picture_paht'];?>);background-repeat:repeat;background-size:100% 100%;">
		<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img<?php echo $k;?>">
			<label for="file" style="opacity: 0;">Filename:</label>
			<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onChange="change_picture<?php echo $k;?>()"></input>
			<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
			<input name="bigtype<?php echo (string)($i);?>" id="bigtype<?php echo (string)($i);?>" value="2" style="opacity: 0;">
			<input name="is_add<?php echo (string)($i);?>" id="is_add<?php echo (string)($i);?>" value="<? echo $row['id'];?>" style="opacity: 0;">
		</form>
	</div>
	
	<?php
		$i++;
		$k++;
	}
	?>
	<?php
	//补全4张图片
	for($i=0;$i<4-$num;$i++){
	?>
	<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
		<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
		<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img<?php echo $i+$num+1;?>">
			<label for="file" style="opacity: 0;">Filename:</label>
			<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onChange="change_picture<?php echo $i+$num+1;?>()"></input>
			<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
			<input name="bigtype<?php echo (string)($num+$i+2);?>" id="bigtype<?php echo (string)($num+$i+2);?>" value="2" style="opacity: 0;">
			<input name="is_add<?php echo (string)($num+$i+2);?>" id="is_add<?php echo (string)($num+$i+2);?>"  value="" style="opacity: 0;">
		</form>
	</div>
	<?php } ?>
</div>

	<SCRIPT LANGUAGE="javascript"> 
	function fnSaveForm(){		
		document.getElementById("biaoqi2").style.backgroundColor="#DA4B3B";
		document.getElementById("biaoqi2").style.color="#FFFFFF";
	}
	window.onload=fnSaveForm;
	function change_picture(){
		$("#upload_user_img").submit();
	}
	function change_picture1(){
		$("#upload_user_img1").submit();
	}
	function change_picture2(){
		$("#upload_user_img2").submit();
	}
	function change_picture3(){
		$("#upload_user_img3").submit();
	}
	function change_picture4(){
		$("#upload_user_img4").submit();
	}
	</SCRIPT>
<?php } ?>
<?php if($_SESSION['bigtype']==3){  ?>
	<?php
	//读取该项目行程特色详情
	$i=1;
	$sql="SELECT * FROM `difang_duanluo` WHERE difang_id='$id' order by youxianji";
	$query = mysql_query($sql);
	if(mysql_num_rows($query)<1){
	}else{	
		while($row = mysql_fetch_array($query)){
			if($i==1){$duanluo1=$row['duanluo'];}
			if($i==2){$duanluo2=$row['duanluo'];}
			if($i==3){$duanluo3=$row['duanluo'];}
			if($i==4){$duanluo4=$row['duanluo'];}

			if($i==1){$sunxv1=$row['youxianji'];}
			if($i==2){$sunxv2=$row['youxianji'];}
			if($i==3){$sunxv3=$row['youxianji'];}
			if($i==4){$sunxv4=$row['youxianji'];}
			
			$i=$i+1;
		}
	}
	?>
	<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落</a>
	<input  type="text" id="duanluo1" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $duanluo1;?>"></input>
	<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">顺序</a>
	<input  type="text" id="sunxv1" style="float:left;width:170px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="数字越小，越优先显示" value="<?php echo $sunxv1;?>"></input>
	
	<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落</a>
	<input  type="text" id="duanluo2" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $duanluo2;?>"></input>
	<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">顺序</a>
	<input  type="text" id="sunxv2" style="float:left;width:170px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="数字越小，越优先显示" value="<?php echo $sunxv2;?>"></input>
	
	<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落</a>
	<input  type="text" id="duanluo3" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $duanluo3;?>"></input>
	<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">顺序</a>
	<input  type="text" id="sunxv3" style="float:left;width:170px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="数字越小，越优先显示" value="<?php echo $sunxv3;?>"></input>
	
	<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落</a>
	<input  type="text" id="duanluo4" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $duanluo4;?>"></input>
	<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">顺序</a>
	<input  type="text" id="sunxv4" style="float:left;width:170px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="数字越小，越优先显示" value="<?php echo $sunxv4;?>"></input>
	<div style="clear:left;width:320px;height:20px;"></div>
	<input type="button" style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onClick="up_date_tese();" ></input>
</div>

	<SCRIPT LANGUAGE="javascript"> 
	function fnSaveForm(){		
		document.getElementById("biaoqi3").style.backgroundColor="#DA4B3B";
		document.getElementById("biaoqi3").style.color="#FFFFFF";
	}
	window.onload=fnSaveForm;
	function up_date_tese(){
		duanluo1         =        document.getElementById("duanluo1").value;
		duanluo2         =        document.getElementById("duanluo2").value;     
		duanluo3         =        document.getElementById("duanluo3").value;
		duanluo4         =        document.getElementById("duanluo4").value;  
		
		sunxv1          =        document.getElementById("sunxv1").value;
		sunxv2          =        document.getElementById("sunxv2").value;
		sunxv3          =        document.getElementById("sunxv3").value;
		sunxv4          =        document.getElementById("sunxv4").value;

		var url="getmessage_all.php?bigtype=3&id=<?php echo $id;?>";
		url=url+"&duanluo1="+duanluo1;
		url=url+"&duanluo2="+duanluo2;
		url=url+"&duanluo3="+duanluo3;
		url=url+"&duanluo4="+duanluo4;
		
		url=url+"&sunxv1="+sunxv1;
		url=url+"&sunxv2="+sunxv2;
		url=url+"&sunxv3="+sunxv3;
		url=url+"&sunxv4="+sunxv4;
		
		//alert(url);
		$.ajax({
			type:"GET",
			url:url,
			dataType: "json",
			success: function(data){	
				if(data['code']==0001){
					alert(data['reason']);
					window.location.href='index.php?id='+data['id'];  
				}else{
					alert(data['reason']);
				}
			}
		});
	}
	</SCRIPT>
<?php } ?>
<?php if($_SESSION['bigtype']==4){  ?>
	<?php
	if($difang_type==3){
		//查询段落信息
			$sql="SELECT * FROM `xingcheng_duanluo` WHERE difang_id='$id' order by id";
			$query = mysql_query($sql);
			if(mysql_num_rows($query)<1){
			}else{	
				while($row = mysql_fetch_array($query)){
					$id_zhishen        =$row['id'];
					$xingcheng_duanluo1=$row['xingcheng_dduanluo1'];
					$xingcheng_duanluo2=$row['xingcheng_dduanluo2'];
					$xingcheng_duanluo3=$row['xingcheng_dduanluo3'];
					$xingcheng_duanluo4=$row['xingcheng_dduanluo4'];
				}
			}
		?>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落1</a>
		<input  type="text" id="xingcheng_duanluo1" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $xingcheng_duanluo1;?>"></input>

		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落2</a>
		<input  type="text" id="xingcheng_duanluo2" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $xingcheng_duanluo2;?>"></input>
		
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落3</a>
		<input  type="text" id="xingcheng_duanluo3" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $xingcheng_duanluo3;?>"></input>
		
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落4</a>
		<input  type="text" id="xingcheng_duanluo4" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $xingcheng_duanluo4;?>"></input>
		
		<a style="opacity:0;" id="id_zhishen_duanluo"><?php echo $id_zhishen;?></a>
		<div style="clear:left;width:320px;height:20px;"></div>
		<input type="button" style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onClick="up_date_xingcheng_duanluo_12();" ></input>
			
		<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">行程活动所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='2' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu21=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu22=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu23=$row['picture_miaoshu'];
			}
			if($i==4){
				$tupianmiaoshu24=$row['picture_miaoshu'];
			}
			if($i==5){
				$tupianmiaoshu25=$row['picture_miaoshu'];
			}
			if($i==6){
				$tupianmiaoshu26=$row['picture_miaoshu'];
			}
			
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img100<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onChange="change_picture100<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype1000<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add1000<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day1000<?php echo (string)($i);?>"  value="" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<6-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img100<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onChange="change_picture100<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype1000<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add1000<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day1000<?php echo (string)($num+$i+1);?>"  value="" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture1001(){
			$("#upload_user_img1001").submit();
		}
		function change_picture1002(){
			$("#upload_user_img1002").submit();
		}
		function change_picture1003(){
			$("#upload_user_img1003").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu21" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu21;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu22" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu22;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu23" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu23;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述4</a>
		<input  type="text" id="tupianmiaoshu24" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu24;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述5</a>
		<input  type="text" id="tupianmiaoshu25" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu25;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述6</a>
		<input  type="text" id="tupianmiaoshu26" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu26;?>"></input>	
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onClick="up_day_picture_100();" ></input>
		<SCRIPT LANGUAGE="javascript"> 
		function up_day_picture_100(){
			tupianmiaoshu21=document.getElementById("tupianmiaoshu21").value;
			tupianmiaoshu22=document.getElementById("tupianmiaoshu22").value;
			tupianmiaoshu23=document.getElementById("tupianmiaoshu23").value;
			tupianmiaoshu24=document.getElementById("tupianmiaoshu24").value;
			tupianmiaoshu25=document.getElementById("tupianmiaoshu25").value;
			tupianmiaoshu26=document.getElementById("tupianmiaoshu26").value;
			
			var url="getmessage_all.php?bigtype=22&id=<?php echo $id;?>";
			url=url+"&tupianmiaoshu21="+tupianmiaoshu21;
			url=url+"&tupianmiaoshu22="+tupianmiaoshu22;
			url=url+"&tupianmiaoshu23="+tupianmiaoshu23;
			url=url+"&tupianmiaoshu24="+tupianmiaoshu24;
			url=url+"&tupianmiaoshu25="+tupianmiaoshu25;
			url=url+"&tupianmiaoshu26="+tupianmiaoshu26;
			//alert(url);
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		function up_date_xingcheng_duanluo_12(){
			id_zhishen_duanluo        =        document.getElementById("id_zhishen_duanluo").innerHTML;
			xingcheng_duanluo1        =        document.getElementById("xingcheng_duanluo1").value;
			xingcheng_duanluo2        =        document.getElementById("xingcheng_duanluo2").value;
			xingcheng_duanluo3        =        document.getElementById("xingcheng_duanluo3").value;
			xingcheng_duanluo4        =        document.getElementById("xingcheng_duanluo4").value;
			
			var url="getmessage_all.php?bigtype=16&id=<?php echo $id;?>";
			url=url+"&id_zhishen_duanluo="+id_zhishen_duanluo;
			url=url+"&xingcheng_duanluo1="+xingcheng_duanluo1;
			url=url+"&xingcheng_duanluo2="+xingcheng_duanluo2;
			url=url+"&xingcheng_duanluo3="+xingcheng_duanluo3;
			url=url+"&xingcheng_duanluo4="+xingcheng_duanluo4;

			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});

		}

		
		</SCRIPT>
		
		
	<?php }else{ ?>
		<?php for($i=1;$i<25;$i++){ ?>
		<div onClick="window.location.href='index.php?day=<?php echo $i;?>&id=<?php echo $id;?>';" style=" cursor:pointer;float:left;width:85px;height:25px;background-color:#ff0000;margin-top:10px;margin-right:10px;line-height:25px;">
			<img style="float:left;width:15px;height:15px;margin:5px 0 0 10px" src="../picture/smole1.png"></img>
			<a style="float:left;color:#FFFFFF;font-family:微软雅黑;font-size:15px;display:block;margin:0px 0 0 5px;">第<?php echo $i;?>天</a>
		</div>
		<?php } ?>
		<?php 
			$day=$_REQUEST['day']; 
			if(strlen($day)==0){
				$day=1;
			}
		?>
		<div style="clear:left;width:100%;height:10px;border-bottom:1px solid #DCDCDD;"></div>
		
		<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;display:block;margin-top:10px;">第<?php echo $day;?>天</a>
		<?php 
		//查询每一天信息
		$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='$day'";
		$query = mysql_query($sql);
		while($row = mysql_fetch_array($query)){
			$zisheng_id1          =  $row['id'];
			$xingcheng1_biaoti    =  $row['biaoti'];
			$xingcheng1_type1     =  $row['tubiao_type1'];
			$xingcheng1_nairong1  =  $row['nairong1'];
			$xingcheng1_type2     =  $row['tubiao_type2'];
			$xingcheng1_nairong2  =  $row['nairong2'];
			$xingcheng1_type3     =  $row['tubiao_type3'];
			$xingcheng1_nairong3  =  $row['nairong3'];
			$xingcheng1_type4     =  $row['tubiao_type4'];
			$xingcheng1_nairong4  =  $row['nairong4'];
		}
		?>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
		<input  type="text" id="xingcheng1_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng1_biaoti;?>"></input>

		<select id="xingcheng1_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
			<option value="0">选择类型</option>
			<option value="2">交通</option>
			<option value="4">行程</option>
			<option value="3">住宿</option>
			<option value="5">餐饮</option>
		</select>
		<input  type="text" id="xingcheng1_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng1_nairong1;?>"></input>
		
		<select id="xingcheng1_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
			<option value="0">选择类型</option>
			<option value="2">交通</option>
			<option value="4">行程</option>
			<option value="3">住宿</option>
			<option value="5">餐饮</option>
		</select>
		<input  type="text" id="xingcheng1_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng1_nairong2;?>"></input>
		
		<select id="xingcheng1_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
			<option value="0">选择类型</option>
			<option value="2">交通</option>
			<option value="4">行程</option>
			<option value="3">住宿</option>
			<option value="5">餐饮</option>
		</select>
		<input  type="text" id="xingcheng1_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng1_nairong3;?>"></input>
		
		<select id="xingcheng1_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
			<option value="0">选择类型</option>
			<option value="2">交通</option>
			<option value="4">行程</option>
			<option value="3">住宿</option>
			<option value="5">餐饮</option>
		</select>
		<input  type="text" id="xingcheng1_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng1_nairong4;?>"></input>
		
		<a style="opacity:0;" id="zisheng_id1"><?php echo $zisheng_id1;?></a><!--自身id标识段，这个很重要-->
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onClick="up_day_one();" ></input>
					
		<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第<?php echo $day;?>天所附图片及描述</a>
		<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='$day' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu11=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu12=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu13=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img2<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onChange="change_picture2<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype10<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add10<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day10<?php echo (string)($i);?>"  value="<?php echo $day;?>" style="opacity: 0;">
			</form>
		</div>
		
		<?php
			$i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img2<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onChange="change_picture2<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype10<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add10<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day10<?php echo (string)($num+$i+1);?>"  value="<?php echo $day;?>" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture21(){
			$("#upload_user_img21").submit();
		}
		function change_picture22(){
			$("#upload_user_img22").submit();
		}
		function change_picture23(){
			$("#upload_user_img23").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu11" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu11;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu12" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu12;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu13" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu13;?>"></input>	
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onClick="up_day_picture_1();" ></input>
		<input id="day_biaoshi_11" value="<?php echo $day;?>" style="opacity:0;">
	<?php } ?>
</div>
		
	<SCRIPT LANGUAGE="javascript"> 
	function up_day_picture_1(){
		day_biaoshi=document.getElementById("day_biaoshi_11").value;
		tupianmiaoshu11=document.getElementById("tupianmiaoshu11").value;
		tupianmiaoshu12=document.getElementById("tupianmiaoshu12").value;
		tupianmiaoshu13=document.getElementById("tupianmiaoshu13").value;
		
		var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
		url=url+"&day_biaoshi="+day_biaoshi;
		url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
		url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
		url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
		//alert(url);
		$.ajax({
			type:"GET",
			url:url,
			dataType: "json",
			success: function(data){	
				if(data['code']==0001){
					alert(data['reason']);
					window.location.href='index.php?id='+data['id']+"&day=<?php echo $day;?>";  
				}else{
					alert(data['reason']);
				}
			}
		});
		
	}
	function fnSaveForm(){		
		document.getElementById("biaoqi4").style.backgroundColor="#DA4B3B";
		document.getElementById("biaoqi4").style.color="#FFFFFF";
		
		var selectObj=document.getElementById("xingcheng1_type1");
		for (i=0; i< selectObj.options.length; i++){
			var curOptObj=selectObj.options[i];
			var curText=curOptObj.value;
			if("<?php echo $xingcheng1_type1;?>"==curText){
				curOptObj.selected=true;
			}
		}
		
		var selectObj=document.getElementById("xingcheng1_type2");
		for (i=0; i< selectObj.options.length; i++){
			var curOptObj=selectObj.options[i];
			var curText=curOptObj.value;
			if("<?php echo $xingcheng1_type2;?>"==curText){
				curOptObj.selected=true;
			}
		}
		
		var selectObj=document.getElementById("xingcheng1_type3");
		for (i=0; i< selectObj.options.length; i++){
			var curOptObj=selectObj.options[i];
			var curText=curOptObj.value;
			if("<?php echo $xingcheng1_type3;?>"==curText){
				curOptObj.selected=true;
			}
		}
		
		var selectObj=document.getElementById("xingcheng1_type4");
		for (i=0; i< selectObj.options.length; i++){
			var curOptObj=selectObj.options[i];
			var curText=curOptObj.value;
			if("<?php echo $xingcheng1_type4;?>"==curText){
				curOptObj.selected=true;
			}
		}
	}
	window.onload=fnSaveForm;
	function up_day_one(){
		zisheng_id               =        document.getElementById("zisheng_id1").innerHTML;
		xingcheng1_biaoti        =        document.getElementById("xingcheng1_biaoti").value;
		xingcheng1_type1         =        document.getElementById("xingcheng1_type1").value;
		xingcheng1_nairong1      =        document.getElementById("xingcheng1_nairong1").value;
		xingcheng1_type2         =        document.getElementById("xingcheng1_type2").value;
		xingcheng1_nairong2      =        document.getElementById("xingcheng1_nairong2").value;
		xingcheng1_type3         =        document.getElementById("xingcheng1_type3").value;
		xingcheng1_nairong3      =        document.getElementById("xingcheng1_nairong3").value;
		xingcheng1_type4         =        document.getElementById("xingcheng1_type4").value;
		xingcheng1_nairong4      =        document.getElementById("xingcheng1_nairong4").value;
		
		if(zisheng_id=="undifind"){
			zisheng_id="";
		}
		
		var url="getmessage_all.php?bigtype=4&day=<?php echo $day;?>&id=<?php echo $id;?>";
		url=url+"&zisheng_id="+zisheng_id;
		url=url+"&xingcheng1_biaoti="+xingcheng1_biaoti;
		url=url+"&xingcheng1_type1="+xingcheng1_type1;
		url=url+"&xingcheng1_nairong1="+xingcheng1_nairong1;
		url=url+"&xingcheng1_type2="+xingcheng1_type2;
		url=url+"&xingcheng1_nairong2="+xingcheng1_nairong2;
		url=url+"&xingcheng1_type3="+xingcheng1_type3;
		url=url+"&xingcheng1_nairong3="+xingcheng1_nairong3;
		url=url+"&xingcheng1_type4="+xingcheng1_type4;
		url=url+"&xingcheng1_nairong4="+xingcheng1_nairong4;
		
		$.ajax({
			type:"GET",
			url:url,
			dataType: "json",
			success: function(data){	
				if(data['code']==0001){
					alert(data['reason']);
					window.location.href='index.php?id='+data['id']+'&day='+data['day'];   
				}else{
					alert(data['reason']);
				}
			}
		});
		
	}
	</SCRIPT>
<?php } ?>

<?php if($_SESSION['bigtype']==5){  ?>
	<?php
	//查询上次提交的行程须知
	$sql="SELECT * FROM `yonghu_xvzhi` WHERE difang_id='$id'";
		$query = mysql_query($sql);
		while($row = mysql_fetch_array($query)){
			$id_zhisheng_theer    =  $row['id'];//行程id；
			$textarea             =  $row['textarea'];//行程内容；
		}
	
	?>
	<form action="getmessage_all.php" method="post">
		<textarea style="clear:left;float:left;" rows="15" cols="102" id="textarea" name="textarea">
			<?php echo $textarea;?>
		</textarea>
		<a style="clear:left;text-align:center">&nb sp;空格符   < / br>换行符</a>
		
		<input style="clear:left;float:left;" type="reset" name="Submit2" value="重写" />
		<input style="float:left;" type="submit" name="post" value="提交" />
		
		<input style="opacity:0;" id="bigtype" name="bigtype" value="17"></input>
		<input style="opacity:0;" id="difang_id" name="difang_id" value="<?php echo $id?>"></input>
		<input style="opacity:0;" id="id_zhisheng_theer" name="id_zhisheng_theer" value="<?php echo $id_zhisheng_theer;?>"></input>
	</form>
	
	<SCRIPT LANGUAGE="javascript"> 
	function fnSaveForm(){		
		document.getElementById("biaoqi5").style.backgroundColor="#DA4B3B";
		document.getElementById("biaoqi5").style.color="#FFFFFF";
	}
	window.onload=fnSaveForm;
	</SCRIPT>
<?php } ?>

<?php if($_SESSION['bigtype']==6){  ?>
	<?php
	//查询段落信息
		$sql="SELECT * FROM `mudi_duanluo` WHERE difang_id='$id' order by id";
		$query = mysql_query($sql);
		if(mysql_num_rows($query)<1){
			$id_zhishen        = "";
		}else{	
			while($row = mysql_fetch_array($query)){
				$id_zhishen        =$row['id'];
				$mudi_duanluo1=$row['mudi_duanluo1'];
				$mudi_duanluo2=$row['mudi_duanluo2'];
				$mudi_duanluo3=$row['mudi_duanluo3'];
				$mudi_duanluo4=$row['mudi_duanluo4'];
			}
		}
	?>
	<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落1</a>
	<input  type="text" id="mudi_duanluo1" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $mudi_duanluo1;?>"></input>

	
	<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落2</a>
	<input  type="text" id="mudi_duanluo2" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $mudi_duanluo2;?>"></input>
	
	
	<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落3</a>
	<input  type="text" id="mudi_duanluo3" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $mudi_duanluo3;?>"></input>
	
	
	<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落4</a>
	<input  type="text" id="mudi_duanluo4" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $mudi_duanluo4;?>"></input>
	
	<a style="opacity:0;" id="id_mudi_duanluo"><?php echo $id_zhishen;?></a>
	<div style="clear:left;width:320px;height:20px;"></div>
	<input type="button" style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onClick="up_date_mudi_duanluo_sdf();" ></input>
	
	<SCRIPT LANGUAGE="javascript"> 
	function up_date_mudi_duanluo_sdf(){
		id_mudi_duanluo      =        document.getElementById("id_mudi_duanluo").innerHTML;
		mudi_duanluo1        =        document.getElementById("mudi_duanluo1").value;
		mudi_duanluo2        =        document.getElementById("mudi_duanluo2").value;
		mudi_duanluo3        =        document.getElementById("mudi_duanluo3").value;
		mudi_duanluo4        =        document.getElementById("mudi_duanluo4").value;
		
		var url="getmessage_all.php?bigtype=18&id=<?php echo $id;?>";
		url=url+"&id_mudi_duanluo="+id_mudi_duanluo;
		url=url+"&mudi_duanluo1="+mudi_duanluo1;
		url=url+"&mudi_duanluo2="+mudi_duanluo2;
		url=url+"&mudi_duanluo3="+mudi_duanluo3;
		url=url+"&mudi_duanluo4="+mudi_duanluo4;
		

		$.ajax({
			type:"GET",
			url:url,
			dataType: "json",
			success: function(data){	
				if(data['code']==0001){
					alert(data['reason']);
					window.location.href='index.php?id='+data['id'];  
				}else{
					alert(data['reason']);
				}
			}
		});
		
	}

	function fnSaveForm(){		
		document.getElementById("biaoqi6").style.backgroundColor="#DA4B3B";
		document.getElementById("biaoqi6").style.color="#FFFFFF";
	}
	window.onload=fnSaveForm;
	</SCRIPT>
<?php } ?>

























